package com.fary.rabbitmq.config;

import com.rabbitmq.client.ConnectionFactory;

public class RabbitMQFactory {

    public static ConnectionFactory getConnectionFactory() {
        ConnectionFactory factory = new ConnectionFactory();
        factory.setVirtualHost("/");
        factory.setHost("172.21.136.253");
        factory.setPort(5672);
        factory.setUsername("admin");
        factory.setPassword("admin");
        return factory;
    }


}
